package com.ruoyi.ai_config.domain;

import java.time.LocalDate;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * AI配置参数对象 ai_config_params
 * 
 * @author lzk
 * @date 2025-06-25
 */
@Schema(description = "AI配置参数对象")
public class AiConfigParams extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 主键 */
    @Schema(title = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 配置ID */
    @Schema(title = "配置ID")
    @Excel(name = "配置ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long configId;

    /** 参数键名 */
    @Schema(title = "参数键名")
    @Excel(name = "参数键名")
    private String paramKey;

    /** 参数值 */
    @Schema(title = "参数值")
    @Excel(name = "参数值")
    private String paramValue;

    /** 参数类型：string-字符串，number-数字，boolean-布尔，json-JSON对象 */
    @Schema(title = "参数类型：string-字符串，number-数字，boolean-布尔，json-JSON对象")
    @Excel(name = "参数类型：string-字符串，number-数字，boolean-布尔，json-JSON对象")
    private String paramType;

    /** 参数描述 */
    @Schema(title = "参数描述")
    @Excel(name = "参数描述")
    private String paramDescription;

    /** 是否必填：0-否，1-是 */
    @Schema(title = "是否必填：0-否，1-是")
    @Excel(name = "是否必填：0-否，1-是")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long isRequired;

    /** 排序 */
    @Schema(title = "排序")
    @Excel(name = "排序")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sortOrder;

    /** 创建者 */
    @Schema(title = "创建者")
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @Schema(title = "创建时间")
    @Excel(name = "创建时间")
    private LocalDate createdTime;

    /** 更新者 */
    @Schema(title = "更新者")
    @Excel(name = "更新者")
    private String updatedBy;

    /** 更新时间 */
    @Schema(title = "更新时间")
    @Excel(name = "更新时间")
    private LocalDate updatedTime;

    /** 删除标志 */
    @Schema(title = "删除标志")
    private String delFlag;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }


    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }


    public void setParamKey(String paramKey) 
    {
        this.paramKey = paramKey;
    }

    public String getParamKey() 
    {
        return paramKey;
    }


    public void setParamValue(String paramValue) 
    {
        this.paramValue = paramValue;
    }

    public String getParamValue() 
    {
        return paramValue;
    }


    public void setParamType(String paramType) 
    {
        this.paramType = paramType;
    }

    public String getParamType() 
    {
        return paramType;
    }


    public void setParamDescription(String paramDescription) 
    {
        this.paramDescription = paramDescription;
    }

    public String getParamDescription() 
    {
        return paramDescription;
    }


    public void setIsRequired(Long isRequired) 
    {
        this.isRequired = isRequired;
    }

    public Long getIsRequired() 
    {
        return isRequired;
    }


    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }


    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }


    public void setCreatedTime(LocalDate createdTime) 
    {
        this.createdTime = createdTime;
    }

    public LocalDate getCreatedTime() 
    {
        return createdTime;
    }


    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }


    public void setUpdatedTime(LocalDate updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public LocalDate getUpdatedTime() 
    {
        return updatedTime;
    }


    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("configId", getConfigId())
            .append("paramKey", getParamKey())
            .append("paramValue", getParamValue())
            .append("paramType", getParamType())
            .append("paramDescription", getParamDescription())
            .append("isRequired", getIsRequired())
            .append("sortOrder", getSortOrder())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
